import request from '@/utils/request'

// 查询健康讲座列表
export function listHealthLectures(query) {
  return request({
    url: '/education/HealthLectures/list',
    method: 'get',
    params: query
  })
}

// 查询健康讲座详细
export function getHealthLectures(lectureId) {
  return request({
    url: '/education/HealthLectures/' + lectureId,
    method: 'get'
  })
}

// 新增健康讲座
export function addHealthLectures(data) {
  return request({
    url: '/education/HealthLectures',
    method: 'post',
    data: data
  })
}

// 修改健康讲座
export function updateHealthLectures(data) {
  return request({
    url: '/education/HealthLectures',
    method: 'put',
    data: data
  })
}

// 删除健康讲座
export function delHealthLectures(lectureId) {
  return request({
    url: '/education/HealthLectures/' + lectureId,
    method: 'delete'
  })
}
